<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Vue 模板</title>
  </head>
  <script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>
  <body>
    <h1>Hello Vue 模板</h1>
    <hr />
    <div id="app">
      {{message}}
    </div>

    <template id="dd2">
      <h2 style="color:red;">我是Template标签模板</h2>
    </template>

    <script type="x-template" id="dd3">
      <h2 style="color:red;">我是Script标签模板</h2>
    </script>
  </body>

  <script>
    var app = new Vue({
      el: '#app',
      data: {
        message: 'Hello Vue'
      },
      // template: `
      //   <h2 style="color:red;">我是选项模板</h2>
      // `
      template: '#dd3',
      template: '#dd2'
    })
  </script>
</html>
